<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性绑定</title>
    <style>
        a{
            text-decoration: none;
        }
    </style>
</head>
<body>
<div>
    <!--:属性名=变量 让元素的属性和变量进行绑定-->
    <input type="text" :value="info">
    <input type="text" v-bind:value="info">
    <a :href="url">超链接</a>
    <img :src="imageName" alt="">
    <input type="button" value="刷新" onclick="f()">
</div>
<!--引入网络版的Vue框架 Vue插件才会正常工作-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    new Vue({
        el:"div",
        data:{
            info:"属性绑定",
            url:"http://www.baidu.com",
            imageName:"../b.jpg"
        }
    })
    function f() {
        location.reload()
    }

</script>
</body>
</html>